<!-- HTML header for doxygen 1.9.1-->
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.9.4" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>NumCpp: Centroid.hpp Source File</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
    <!-- ... other metadata & script includes ... -->
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeDarkModeToggle.init()
    </script>
    <script type="text/javascript"
        src="../doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeFragmentCopyButton.init()
    </script>
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-paragraph-link.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeParagraphLink.init()
    </script>
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-interactive-toc.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeInteractiveToc.init()
    </script>
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <div id="titlearea">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                    <tr style="height: 56px;">
                        <td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
                        <td id="projectalign" style="padding-left: 0.5em;">
                            <div id="projectname">NumCpp
                                &#160;<span id="projectnumber">2.12.1</span>
                            </div>
                            <div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- end header part --><!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('_centroid_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">Centroid.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="_centroid_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="preprocessor">#include &quot;<a class="code" href="_static_asserts_8hpp.html">NumCpp/Core/Internal/StaticAsserts.hpp</a>&quot;</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">#include &quot;<a class="code" href="_types_8hpp.html">NumCpp/Core/Types.hpp</a>&quot;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#include &quot;<a class="code" href="center_of_mass_8hpp.html">NumCpp/Functions/centerOfMass.hpp</a>&quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#include &quot;<a class="code" href="_cluster_8hpp.html">NumCpp/ImageProcessing/Cluster.hpp</a>&quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor">#include &quot;<a class="code" href="_nd_array_8hpp.html">NumCpp/NdArray.hpp</a>&quot;</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#include &quot;<a class="code" href="essentially_equal_8hpp.html">NumCpp/Utils/essentiallyEqual.hpp</a>&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#include &quot;<a class="code" href="num2str_8hpp.html">NumCpp/Utils/num2str.hpp</a>&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacenc_1_1image_processing.html">nc::imageProcessing</a></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>{</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    <span class="comment">//================================================================================</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>    <span class="comment">// Class Description:</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="comment"></span>    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> dtype&gt;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html">   49</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classnc_1_1image_processing_1_1_centroid.html">Centroid</a></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    {</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>        STATIC_ASSERT_ARITHMETIC(dtype);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#aad242afbcb78cfb650864a2c331d2f1a">   55</a></span>        <span class="keyword">using </span><a class="code hl_typedef" href="classnc_1_1image_processing_1_1_centroid.html#aad242afbcb78cfb650864a2c331d2f1a">accumulator_t</a> = <span class="keyword">typename</span> std::conditional&lt;std::is_integral&lt;dtype&gt;::value, <a class="code hl_typedef" href="namespacenc.html#a6223a7f3b0f7886036f64276f36c921e">int64</a>, <span class="keywordtype">double</span>&gt;::type;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a3b97e4ddc31b85eb8c3f84b398429a35">   61</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a3b97e4ddc31b85eb8c3f84b398429a35">Centroid</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a59d0af7acae8d24d29ccb372440aed22">   69</a></span><span class="comment"></span>        <span class="keyword">explicit</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a59d0af7acae8d24d29ccb372440aed22">Centroid</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1image_processing_1_1_cluster.html">Cluster&lt;dtype&gt;</a>&amp; inCluster) :</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>            intensity_(inCluster.<a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a2d109ab927d1a7496073af5c964f3172">intensity</a>()),</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>            eod_(inCluster.<a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a098ee235ea6fcf22df2a7a0d80d53e44">eod</a>())</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>        {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>            centerOfMass(inCluster);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>            setEllipseProperties(inCluster);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>        }</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#aa3546b7b2430b51650f40fb344ab55a8">   83</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#aa3546b7b2430b51650f40fb344ab55a8">row</a>() const noexcept</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>        {</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>            <span class="keywordflow">return</span> row_;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>        }</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a4ef0e9b2faa4999af5c3597a60140d6c">   94</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a4ef0e9b2faa4999af5c3597a60140d6c">col</a>() const noexcept</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>        {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>            <span class="keywordflow">return</span> col_;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>        }</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a2d109ab927d1a7496073af5c964f3172">  105</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_typedef" href="classnc_1_1image_processing_1_1_centroid.html#aad242afbcb78cfb650864a2c331d2f1a">accumulator_t</a> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a2d109ab927d1a7496073af5c964f3172">intensity</a>() const noexcept</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>        {</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>            <span class="keywordflow">return</span> intensity_;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>        }</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a098ee235ea6fcf22df2a7a0d80d53e44">  116</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a098ee235ea6fcf22df2a7a0d80d53e44">eod</a>() const noexcept</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>        {</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>            <span class="keywordflow">return</span> eod_;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>        }</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#ab4861437009bad84b5cb42b74dc11995">  127</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#ab4861437009bad84b5cb42b74dc11995">a</a>() const noexcept</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        {</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>            <span class="keywordflow">return</span> a_;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>        }</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a0aed7ca35cd8c7cc37eec0f8c25e0dc2">  139</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a0aed7ca35cd8c7cc37eec0f8c25e0dc2">b</a>() const noexcept</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>        {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>            <span class="keywordflow">return</span> b_;</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>        }</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a8433a28b03cb09ba5d67963b077661bd">  150</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a8433a28b03cb09ba5d67963b077661bd">eccentricity</a>() const noexcept</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>        {</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>            <span class="keywordflow">return</span> eccentricity_;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>        }</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#ae60198fea1dd29418adbf5e943251d67">  162</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#ae60198fea1dd29418adbf5e943251d67">orientation</a>() const noexcept</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>        {</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>            <span class="keywordflow">return</span> orientation_;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>        }</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#aa39ae81638b8f7ed7b81d4476e2a6316">  173</a></span><span class="comment"></span>        [[nodiscard]] std::string <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#aa39ae81638b8f7ed7b81d4476e2a6316">str</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>            std::string out = <span class="stringliteral">&quot;row = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(row_) + <span class="stringliteral">&quot; col = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(col_) +</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>                              <span class="stringliteral">&quot; intensity = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(intensity_) + <span class="stringliteral">&quot; eod = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(eod_) +</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>                              <span class="stringliteral">&quot; a = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(a_) + <span class="stringliteral">&quot; b = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(b_) +</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span>                              <span class="stringliteral">&quot; eccentricity = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(eccentricity_) +</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>                              <span class="stringliteral">&quot; orientation = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(orientation_) + <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>            <span class="keywordflow">return</span> out;</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span>        }</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span> </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a139efcdd994d1bacdf62d65b3c427d8d">  188</a></span><span class="comment"></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a139efcdd994d1bacdf62d65b3c427d8d">print</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span>            std::cout &lt;&lt; *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>        }</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a503a2542b388f65fb80710dd33610abc">  201</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a503a2542b388f65fb80710dd33610abc">operator==</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1image_processing_1_1_centroid.html">Centroid&lt;dtype&gt;</a>&amp; rhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>        {</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>            <span class="keywordflow">return</span> (<a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(row_, rhs.row_) &amp;&amp; <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(col_, rhs.col_) &amp;&amp;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>                    <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(intensity_, rhs.intensity_) &amp;&amp; <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(eod_, rhs.eod_) &amp;&amp;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>                    <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(a_, rhs.a_) &amp;&amp; <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(b_, rhs.b_) &amp;&amp;</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>                    <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(eccentricity_, rhs.eccentricity_) &amp;&amp;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>                    <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(orientation_, rhs.orientation_));</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>        }</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a89eb742174a9dd27b730ce4502e119cd">  218</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a89eb742174a9dd27b730ce4502e119cd">operator!=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1image_processing_1_1_centroid.html">Centroid&lt;dtype&gt;</a>&amp; rhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>        {</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>            <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == rhs);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>        }</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a093719e81ed5bd5af0cb80dcfd03289f">  234</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#a093719e81ed5bd5af0cb80dcfd03289f">operator&lt;</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1image_processing_1_1_centroid.html">Centroid&lt;dtype&gt;</a>&amp; rhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span>        {</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>            <span class="keywordflow">return</span> intensity_ &lt; rhs.intensity_ ? false : <span class="keyword">true</span>;</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>        }</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_centroid.html#a0a01c6fd74c73f5cc736678aaf38a167">  247</a></span><span class="comment"></span>        <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="classnc_1_1image_processing_1_1_centroid.html#a0a01c6fd74c73f5cc736678aaf38a167">operator&lt;&lt;</a>(std::ostream&amp; inStream, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1image_processing_1_1_centroid.html">Centroid&lt;dtype&gt;</a>&amp; inCentriod)</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>        {</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>            inStream &lt;&lt; inCentriod.<a class="code hl_function" href="classnc_1_1image_processing_1_1_centroid.html#aa39ae81638b8f7ed7b81d4476e2a6316">str</a>();</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>            <span class="keywordflow">return</span> inStream;</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>        }</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span> </div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span>        <span class="comment">//==================================Attributes================================///</span></div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span>        <span class="keywordtype">double</span>        row_{ 0. };</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span>        <span class="keywordtype">double</span>        col_{ 0. };</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span>        <a class="code hl_typedef" href="classnc_1_1image_processing_1_1_centroid.html#aad242afbcb78cfb650864a2c331d2f1a">accumulator_t</a> intensity_{ 0 };</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span>        <span class="keywordtype">double</span>        eod_{ 0. };</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>        <span class="keywordtype">double</span> a_{};</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span>        <span class="keywordtype">double</span> b_{};</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>        <span class="keywordtype">double</span> eccentricity_{};</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>        <span class="keywordtype">double</span> orientation_{};</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span><span class="comment"></span>        <span class="keywordtype">void</span> centerOfMass(<span class="keyword">const</span> Cluster&lt;dtype&gt;&amp; inCluster)</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span>        {</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span>            <span class="keyword">const</span> Shape    clusterShape(inCluster.height(), inCluster.width());</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span>            NdArray&lt;dtype&gt; clusterArray(clusterShape);</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span>            clusterArray.zeros();</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span> </div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span>            <span class="keyword">const</span> <a class="code hl_typedef" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> rowMin = inCluster.rowMin();</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>            <span class="keyword">const</span> <a class="code hl_typedef" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> colMin = inCluster.colMin();</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span> </div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span>            <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; pixel : inCluster)</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>            {</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>                clusterArray(pixel.row - rowMin, pixel.col - colMin) = pixel.intensity;</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span>            }</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span> </div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span>            <span class="keyword">const</span> <span class="keyword">auto</span> rowCol = <a class="code hl_function" href="namespacenc.html#a712445c9dd3bb483ae6a6be90e79c3e8">nc::centerOfMass</a>(clusterArray);</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span>            row_              = rowCol.front() + rowMin;</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span>            col_              = rowCol.back() + colMin;</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span>        }</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span> </div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span>        <span class="comment">//=============================================================================</span></div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span>        <span class="comment">// Description:</span></div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span><span class="comment"></span>        <span class="keywordtype">void</span> setEllipseProperties(<span class="keyword">const</span> Cluster&lt;dtype&gt;&amp; inCluster) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>        {</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>            <span class="keyword">constexpr</span> <span class="keyword">auto</span> two = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(2.);</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span> </div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span>            <span class="keyword">auto</span> m20 = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(0.);</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span>            <span class="keyword">auto</span> m02 = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(0.);</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span>            <span class="keyword">auto</span> m11 = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(0.);</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span> </div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>            <span class="keywordflow">for</span> (<span class="keyword">typename</span> <a class="code hl_typedef" href="classnc_1_1image_processing_1_1_cluster.html#a3b344c255dfcfcf18e0fc9f1e84979ae">Cluster&lt;dtype&gt;::const_iterator</a> iter = inCluster.begin(); iter != inCluster.end(); ++iter)</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span>            {</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>                <span class="keyword">const</span> <span class="keyword">auto</span>&amp;  pixel  = *iter;</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span>                <span class="keyword">const</span> <span class="keywordtype">double</span> deltaX = pixel.col - col_;</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno">  313</span>                <span class="keyword">const</span> <span class="keywordtype">double</span> deltaY = pixel.row - row_;</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span> </div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno">  315</span>                m11 += deltaX * deltaY;</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>                m20 += <a class="code hl_function" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(deltaX);</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span>                m02 += <a class="code hl_function" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(deltaY);</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>            }</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span> </div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno">  320</span>            <span class="keyword">const</span> <span class="keyword">auto</span> numPixels = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(inCluster.size());</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span>            m11 /= numPixels;</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span>            m20 /= numPixels;</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span>            m02 /= numPixels;</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno">  324</span> </div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span>            <span class="keywordtype">double</span> piece1 = m20 + m02;</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno">  326</span>            piece1 /= two;</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span> </div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>            <span class="keywordtype">double</span> piece2 = <a class="code hl_function" href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">std::sqrt</a>(<span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(4.) * <a class="code hl_function" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(m11) + <a class="code hl_function" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(m20 - m02));</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span>            piece2 /= two;</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span> </div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> lambda1 = piece1 - piece2;</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno">  332</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> lambda2 = piece1 + piece2;</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span> </div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span>            eccentricity_ = <a class="code hl_function" href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">std::sqrt</a>(<span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(1.) - lambda1 / lambda2);</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno">  335</span>            orientation_  = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(-0.5) * std::atan2(two * m11, m20 - m02);</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span>            a_            = two * <a class="code hl_function" href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">std::sqrt</a>(lambda2);</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span>            b_            = two * <a class="code hl_function" href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">std::sqrt</a>(lambda1);</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span>        }</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span>    };</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>} <span class="comment">// namespace nc::imageProcessing</span></div>
<div class="ttc" id="a_cluster_8hpp_html"><div class="ttname"><a href="_cluster_8hpp.html">Cluster.hpp</a></div></div>
<div class="ttc" id="a_nd_array_8hpp_html"><div class="ttname"><a href="_nd_array_8hpp.html">NdArray.hpp</a></div></div>
<div class="ttc" id="a_static_asserts_8hpp_html"><div class="ttname"><a href="_static_asserts_8hpp.html">StaticAsserts.hpp</a></div></div>
<div class="ttc" id="a_types_8hpp_html"><div class="ttname"><a href="_types_8hpp.html">Types.hpp</a></div></div>
<div class="ttc" id="acenter_of_mass_8hpp_html"><div class="ttname"><a href="center_of_mass_8hpp.html">centerOfMass.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html">nc::imageProcessing::Centroid</a></div><div class="ttdoc">holds the information for a centroid</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:50</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a093719e81ed5bd5af0cb80dcfd03289f"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a093719e81ed5bd5af0cb80dcfd03289f">nc::imageProcessing::Centroid::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const Centroid&lt; dtype &gt; &amp;rhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:234</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a098ee235ea6fcf22df2a7a0d80d53e44"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a098ee235ea6fcf22df2a7a0d80d53e44">nc::imageProcessing::Centroid::eod</a></div><div class="ttdeci">double eod() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:116</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a0a01c6fd74c73f5cc736678aaf38a167"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a0a01c6fd74c73f5cc736678aaf38a167">nc::imageProcessing::Centroid::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;inStream, const Centroid&lt; dtype &gt; &amp;inCentriod)</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:247</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a0aed7ca35cd8c7cc37eec0f8c25e0dc2"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a0aed7ca35cd8c7cc37eec0f8c25e0dc2">nc::imageProcessing::Centroid::b</a></div><div class="ttdeci">double b() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:139</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a139efcdd994d1bacdf62d65b3c427d8d"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a139efcdd994d1bacdf62d65b3c427d8d">nc::imageProcessing::Centroid::print</a></div><div class="ttdeci">void print() const</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:188</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a2d109ab927d1a7496073af5c964f3172"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a2d109ab927d1a7496073af5c964f3172">nc::imageProcessing::Centroid::intensity</a></div><div class="ttdeci">accumulator_t intensity() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:105</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a3b97e4ddc31b85eb8c3f84b398429a35"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a3b97e4ddc31b85eb8c3f84b398429a35">nc::imageProcessing::Centroid::Centroid</a></div><div class="ttdeci">Centroid()=default</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a4ef0e9b2faa4999af5c3597a60140d6c"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a4ef0e9b2faa4999af5c3597a60140d6c">nc::imageProcessing::Centroid::col</a></div><div class="ttdeci">double col() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:94</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a503a2542b388f65fb80710dd33610abc"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a503a2542b388f65fb80710dd33610abc">nc::imageProcessing::Centroid::operator==</a></div><div class="ttdeci">bool operator==(const Centroid&lt; dtype &gt; &amp;rhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:201</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a59d0af7acae8d24d29ccb372440aed22"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a59d0af7acae8d24d29ccb372440aed22">nc::imageProcessing::Centroid::Centroid</a></div><div class="ttdeci">Centroid(const Cluster&lt; dtype &gt; &amp;inCluster)</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:69</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a8433a28b03cb09ba5d67963b077661bd"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a8433a28b03cb09ba5d67963b077661bd">nc::imageProcessing::Centroid::eccentricity</a></div><div class="ttdeci">double eccentricity() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:150</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_a89eb742174a9dd27b730ce4502e119cd"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#a89eb742174a9dd27b730ce4502e119cd">nc::imageProcessing::Centroid::operator!=</a></div><div class="ttdeci">bool operator!=(const Centroid&lt; dtype &gt; &amp;rhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:218</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_aa3546b7b2430b51650f40fb344ab55a8"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#aa3546b7b2430b51650f40fb344ab55a8">nc::imageProcessing::Centroid::row</a></div><div class="ttdeci">double row() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:83</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_aa39ae81638b8f7ed7b81d4476e2a6316"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#aa39ae81638b8f7ed7b81d4476e2a6316">nc::imageProcessing::Centroid::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:173</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_aad242afbcb78cfb650864a2c331d2f1a"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#aad242afbcb78cfb650864a2c331d2f1a">nc::imageProcessing::Centroid::accumulator_t</a></div><div class="ttdeci">typename std::conditional&lt; std::is_integral&lt; dtype &gt;::value, int64, double &gt;::type accumulator_t</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:55</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_ab4861437009bad84b5cb42b74dc11995"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#ab4861437009bad84b5cb42b74dc11995">nc::imageProcessing::Centroid::a</a></div><div class="ttdeci">double a() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:127</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_centroid_html_ae60198fea1dd29418adbf5e943251d67"><div class="ttname"><a href="classnc_1_1image_processing_1_1_centroid.html#ae60198fea1dd29418adbf5e943251d67">nc::imageProcessing::Centroid::orientation</a></div><div class="ttdeci">double orientation() const noexcept</div><div class="ttdef"><b>Definition:</b> Centroid.hpp:162</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_html"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster.html">nc::imageProcessing::Cluster</a></div><div class="ttdoc">Holds the information for a cluster of pixels.</div><div class="ttdef"><b>Definition:</b> Cluster.hpp:53</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_html_a3b344c255dfcfcf18e0fc9f1e84979ae"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster.html#a3b344c255dfcfcf18e0fc9f1e84979ae">nc::imageProcessing::Cluster::const_iterator</a></div><div class="ttdeci">typename std::vector&lt; Pixel&lt; dtype &gt; &gt;::const_iterator const_iterator</div><div class="ttdef"><b>Definition:</b> Cluster.hpp:59</div></div>
<div class="ttc" id="aessentially_equal_8hpp_html"><div class="ttname"><a href="essentially_equal_8hpp.html">essentiallyEqual.hpp</a></div></div>
<div class="ttc" id="anamespacenc_1_1image_processing_html"><div class="ttname"><a href="namespacenc_1_1image_processing.html">nc::imageProcessing</a></div><div class="ttdef"><b>Definition:</b> applyThreshold.hpp:34</div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_a16a6ad93c420ed7a003d9921bee1a7c6"><div class="ttname"><a href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">nc::utils::num2str</a></div><div class="ttdeci">std::string num2str(dtype inNumber)</div><div class="ttdef"><b>Definition:</b> num2str.hpp:44</div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_a963b90e7c9a3b057a924298750ddf74c"><div class="ttname"><a href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">nc::utils::essentiallyEqual</a></div><div class="ttdeci">bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept</div><div class="ttdef"><b>Definition:</b> essentiallyEqual.hpp:49</div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_ae792e10a24b7e5b8291a6c31a28a4512"><div class="ttname"><a href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">nc::utils::sqr</a></div><div class="ttdeci">constexpr dtype sqr(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sqr.hpp:42</div></div>
<div class="ttc" id="anamespacenc_html_a6223a7f3b0f7886036f64276f36c921e"><div class="ttname"><a href="namespacenc.html#a6223a7f3b0f7886036f64276f36c921e">nc::int64</a></div><div class="ttdeci">std::int64_t int64</div><div class="ttdef"><b>Definition:</b> Types.hpp:35</div></div>
<div class="ttc" id="anamespacenc_html_a712445c9dd3bb483ae6a6be90e79c3e8"><div class="ttname"><a href="namespacenc.html#a712445c9dd3bb483ae6a6be90e79c3e8">nc::centerOfMass</a></div><div class="ttdeci">NdArray&lt; double &gt; centerOfMass(const NdArray&lt; dtype &gt; &amp;inArray, Axis inAxis=Axis::NONE)</div><div class="ttdef"><b>Definition:</b> centerOfMass.hpp:47</div></div>
<div class="ttc" id="anamespacenc_html_a941a5a1ffb61387495a6f23dc4036287"><div class="ttname"><a href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">nc::sqrt</a></div><div class="ttdeci">auto sqrt(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sqrt.hpp:48</div></div>
<div class="ttc" id="anamespacenc_html_af0f49663fb63332596e2e6327009d581"><div class="ttname"><a href="namespacenc.html#af0f49663fb63332596e2e6327009d581">nc::uint32</a></div><div class="ttdeci">std::uint32_t uint32</div><div class="ttdef"><b>Definition:</b> Types.hpp:40</div></div>
<div class="ttc" id="anum2str_8hpp_html"><div class="ttname"><a href="num2str_8hpp.html">num2str.hpp</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_34171bd951b13a53aa9f237277a18e40.html">NumCpp</a></li><li class="navelem"><a class="el" href="dir_d4391026049f7aede16e9c18d53d30b9.html">ImageProcessing</a></li><li class="navelem"><a class="el" href="_centroid_8hpp.html">Centroid.hpp</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
